﻿<%@ Page Language="C#" MasterPageFile="~/U_masterP.master" AutoEventWireup="true"
    CodeFile="buyerPayment.aspx.cs" Inherits="buyerPayment" %>

<%@ Register Src="uc_main/sideBar_right.ascx" TagName="sideBar_right" TagPrefix="uc1" %>
<%@ Register Src="uc_main/menu_canhan.ascx" TagName="menu_canhan" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
<style>
 #content_left2
{
	width: 100%;
	margin: 0px 0px;
	float: left;
	position: relative;
	min-height: 700px;
}
 </style>
    <div id="content_top">
        <%--<asp:CheckBox ID="CheckBox1" runat="server"/>--%>
        <div id="kep">
            <a href="#">Trang cá nhân</a></div>
        <div id="tags">
            <div id="result">
            </div>
            <% if (Session["KhachHang"] != null)
               { %>
            <div id="Iwill">
                Tôi sẽ
                <asp:TextBox ID="TextBox1" CssClass="txtTieptuc" Width="400px" runat="server" MaxLength="200" onkeyup="valid(this,'special')" onblur="valid(this,'special')"></asp:TextBox>
                chỉ với 5$.
                <ajaxToolkit:FilteredTextBoxExtender ID="TextBox1_FilteredTextBoxExtender" 
                            runat="server" FilterMode="InvalidChars" InvalidChars="!@#$%^&amp;*()_-+=\|{}[]&quot;':,&lt;&gt;.?/" 
                            TargetControlID="TextBox1">
                        </ajaxToolkit:FilteredTextBoxExtender>
                <div id="btn_tieptuc">
                    <asp:Button ID="btnTiep2" CssClass="tieptuc" runat="server" OnClientClick="return checkTT()" Text="Tiếp tục" OnClick="btnTiep2_Click" /></div>
            </div>
            <% }
               else { } %>
        </div>
        <%--<a href="#">
                    <img alt="X" src="img/dky.png" /></a>--%>
    </div>
    <div class="clear">
    </div>
    <div id="sub_content">
        <div id="content_left2">
            <!-- noi dung chinh -->
            <uc2:menu_canhan ID="menu_canhan1" runat="server" />
            <div id="main_canhan">
                <asp:GridView ID="GridView1" GridLines="None" CssClass="shoppingTable" runat="server"
                    AutoGenerateColumns="False" AllowPaging="True" Width="100%" OnRowDeleting="GridView1_RowDeleting"
                    OnRowEditing="GridView1_RowEditing" EmptyDataText="Bạn chưa giao dịch !" AllowSorting="True"
                    CellPadding="0">
                    <Columns>
                        <asp:TemplateField HeaderText="Ngày đặt">
                            <ItemTemplate>
                                <%#string.Format("{0:dd/MM/yyyy}",Eval("Ngay")) %>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Đơn hàng">
                            <ItemTemplate>
                                <a href="orders.aspx?id=<%#Eval("idDH") %>" >
                                    <%#Eval("Order.idDH")%></a>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Yêu cầu">
                            <ItemTemplate>
                                <a href='gigdetails.aspx?g=<%# Eval("Order.Gig.idGig") %>&c=<%# Eval("Order.Gig.idCategory") %>'>
                                    <%#Eval("Order.Gig.TenCongViec")%></a>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField ItemStyle-HorizontalAlign="Center" ItemStyle-VerticalAlign="Middle">
                            <ItemTemplate>
                                5 $
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                <%-- <div class="box">
                    <div class="linkEdit">
                        <div class="dacbiet">
                            <asp:LinkButton ID="linkAdd" runat="server" OnClick="linkAdd_Click">Thêm mới</asp:LinkButton>
                            <asp:Literal ID="Literal1" runat="server"></asp:Literal>
                        </div>
                    </div>
                </div>--%>
            </div>
            <!-- ket  thuc noi dung -->
        </div>
        <%--<div id="content_right">
            <uc1:sideBar_right ID="sideBar_right1" runat="server" />
        </div>--%>
    </div>
    <script type="text/javascript">
        //xử lý khi hover vào table
        //        $(".shoppingTable tr").hover(
        //        function () {
        //            $(this).attr('title', 'Photo by Kelly Clark');
        //        }
        //    );
        var r = {
            'special': /['\\!@#$%^&*\()\{\}\[\]\"\b\/\|\+=_\-<>,;?']/g, ///[\W]/g,
            'quotes': /['\''&'\"']/g,
            'notnumbers': /[^\d]/g,
            'custum': /['\\!@#$%^&*\()\"\b\/\|\:+=_\-<>;.?']/g,
            'email': /['\\!#$%^&*\()\"\b\/\|\:+=_\-<>;?']/g
        }

        function valid(o, w) {
            o.value = o.value.replace(r[w], '');
        }
        function checkTT() {
            if ($('.txtTieptuc').val() == "") {
                alert('Không được để trống ');
                $('.txtTieptuc').focus();
                return false;
            }
        }
    </script>
</asp:Content>
